package test3;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

public class WriteLog {
    public static String[] str = new String[100];
    int n = 0;

    public WriteLog() {
        for (int i = 0; i < 100; i++) {
            str[i] = "";
        }


        File fp = new File("src/log.txt");
        InputStream i = null;
        try {
            i = new FileInputStream(fp);
            int temp;
            while ((temp = i.read()) != -1) {
                if ((char) temp == '/') {
                    n++;
                } else {
                    str[n] = str[n] + (char) temp;
                }
            }

        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            try {
                i.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}

